const requireComponent = require.context('./', false, /\w+\.vue$/)

const comps = {}

requireComponent.keys().map(fileName => {
  const comp = requireComponent(fileName).default;
  if (comp.name) comps[comp.name] = comp
})

// console.log('unit_form reg', comps)
export default comps;
